package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * user_service（用户服务表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_service")
@ApiModel(value = "UserService对象", description = "user_service（用户服务表）")
@Accessors(chain = true)
public class UserService extends Model<UserService> {

    private static final long serialVersionUID = 1L;

    @TableId("service_id")
    private String serviceId;

    @ApiModelProperty(value = "用户流水号")
    @TableField("user_id")
    private String userId;

    @TableField("service_name")
    private String serviceName;

    @ApiModelProperty(value = "邮箱账号")
    @TableField("service_account")
    private String serviceAccount;

    @ApiModelProperty(value = "服务标识")
    @TableField("service_code")
    private String serviceCode;

    @ApiModelProperty(value = "邮箱状态")
    @TableField("service_status")
    private Integer serviceStatus;

    @ApiModelProperty(value = "邮箱有效期")
    @TableField("service_start_time")
    private Long serviceStartTime;

    @ApiModelProperty(value = "邮箱有效期")
    @TableField("service_end_time")
    private Long serviceEndTime;

    @ApiModelProperty(value = "数据来源")
    @TableField("data_source")
    private String dataSource;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.serviceId;
    }

}
